﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMasterPage.master" AutoEventWireup="true" CodeFile="UserEdit.aspx.cs" Inherits="Admin_UserEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style6
        {
            width: 100%;
        }
        .style7
        {
            color: #FF0000;
        }
        .style8
        {
            height: 63px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style6">
        <tr>
            <td class="style7" colspan="2" style="text-align: center">
                Quản lý người dùng</td>
        </tr>
        <tr>
            <td>
                Tên đăng nhập:</td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server" Width="225px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txtUserName" 
                    ErrorMessage="Tên đăng nhập không được để trống" ForeColor="Red" 
                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Mật khẩu:</td>
            <td>
                <asp:TextBox ID="txtPass" runat="server" TextMode="Password" Width="225px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txtPass" ErrorMessage="Chưa nhập mật khẩu" 
                    ForeColor="Red" SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Nhập lại mật khẩu</td>
            <td>
                <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password" Width="224px"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtPass" ControlToValidate="txtConfirm" 
                    ErrorMessage="Mật khẩu không giống" ForeColor="Red" SetFocusOnError="True">*</asp:CompareValidator>
            </td>
        </tr>
        <tr>
            <td>
                Email:</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server" Width="225px"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Email không hợp lệ" ForeColor="Red" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    SetFocusOnError="True">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                    ControlToValidate="txtEmail" ErrorMessage="Thiếu Email" ForeColor="Red" 
                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Tên thẻ:</td>
            <td>
                <asp:TextBox ID="txtTenThe" runat="server" Width="224px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                    ControlToValidate="txtTenThe" ErrorMessage="Nhập tên thẻ" ForeColor="Red" 
                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Số thẻ:</td>
            <td>
                <asp:TextBox ID="txtSoThe" runat="server" Width="224px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                    ControlToValidate="txtSoThe" ErrorMessage="Nhập số thẻ" ForeColor="Red" 
                    SetFocusOnError="True">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Quyền:</td>
            <td>
                <asp:DropDownList ID="DropDownList1" runat="server">
                    <asp:ListItem Value="1">Admin</asp:ListItem>
                    <asp:ListItem Value="2" Selected="True">Passenger</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style7" colspan="2" style="text-align: center">
                Thông tin người dùng</td>
        </tr>
        <tr>
            <td>
                Họ và tên:</td>
            <td>
                <asp:TextBox ID="txtFullName" runat="server" Width="224px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Giới tính:</td>
            <td>
                <asp:RadioButton ID="rdoMale" runat="server" Checked="True" GroupName="gender" 
                    Text="Nam" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:RadioButton ID="rdoFemale" runat="server" GroupName="gender" Text="Nữ" />
            </td>
        </tr>
        <tr>
            <td>
                Địa chỉ:</td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server" TextMode="MultiLine" Width="224px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Ngày sinh:</td>
            <td>
                <asp:TextBox ID="txtBirthday" runat="server" Width="224px"></asp:TextBox>
                (dd/mm/yyyy)</td>
        </tr>
        <tr>
            <td>
                Số điện thoại:</td>
            <td>
                <asp:TextBox ID="txtPhoneNumber" runat="server" Width="221px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style8">
            </td>
            <td class="style8">
                <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" 
                    Text="Submit" Width="121px" />
            </td>
        </tr>
    </table>
</asp:Content>

